package com.mayikt.service;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Service;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @program: mayikt-springcloud-alibaba
 * @description
 * @author: tianya
 * @create: 2020-05-21 20:08
 **/
@RestController
public class MemberService {

    @Value("${server.port}")
    private String serverPort;

    /**
     * 会员服务提供接口被订单服务调用
     * @param userId
     * @return
     */
    @GetMapping("/getUser")
    public String getUser(Integer userId){
        return "每特教育|蚂蚁课堂: " + serverPort;
    }
}
